import httpRequest from "../index"
/**
 * @description: 登录
 * @return {*}
 */

export const login = (params:any) => {
  return httpRequest.post('/users/login',params)
}
/**
 * @description: 注册
 * @return {*}
 */

export const register = (params:any) => {
  return httpRequest.post('/users/register',params)
}
/**
 * @description: 修改用户
 * @return {*}
 */

export const editUserInfo = (params:any) => {
  return httpRequest.post('/users/resetinfo',params)
}
/**
 * @description: 修改密码
 * @return {*}
 */

export const resetPassWord = (params:any) => {
  return httpRequest.post('/users/reset',params)
}
/**
 * @description: 获取博主信息
 * @return {*}
 */

export const getBloggerInfo = (params:any) => {
  return httpRequest.get('/user/admin',params)
}
/**
 * @description: 获取工具信息
 * @return {*}
 */
export const getTool = (params:any) => {
  return httpRequest.get('/tool/list',params)
}
/**
 * @description: 获取友情链接列表
 * @return {*}
 */
export const getLink = (params:any) => {
  return httpRequest.get('/link/list',params)
}
/**
 * @description: 获取留言板列表
 * @return {*}
 */
export const getLeaveMsg = (params:any) => {
  return httpRequest.post('/leavemsg/list',params)
}
/**
 * @description: 查询公告
 * @return {*}
 */
export const getNotice = (params:any) => {
  return httpRequest.get('/notice/list',params)
}